home *** CD-ROM | disk | FTP | other *** search
- Subject: CW9 ODFDraw built with RTTI & Native Exceptions
- Sent: 6/1/96 3:43 PM
- Received: 6/3/96 7:58 AM
- From: Bill Hembree, whembree@Sigma4.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Well, after a bit of work, we've managed to successfully rebuild ODFDraw
- (with some of our testing code added) using CodeWarrior's native exception
- handling and built-in RTTI. This involved making Henri's changes as
- recommended in the CW9 notes and rebuilding all four (4) static libraries
- (ODUtils is not with the rest of the "Static Libraries" but must also be
- rebuilt).
- We then had to re-pre-compile the .pch++ file for the project. This
- later action is not automatic because it's source file is not included in
- the project. The pch is ODF Dev:ODF:PrecompH:Sources:FWHeader.pch++, in
- case anyone else wants to play games like this.
-
- Incidentaly, when we rebuilt ODFDraw with these options changed, the file
- ended up at 885,268 with our little bit of code added. This is admittely a
- large hit in size, but we did not optimize for anything and will probably,
- at least for testing, continue to use the native versions. Does anyone
- here know why the native versions of RTTI & Exceptions cost so much in code
- size?
-
- I'd suggest that something needs to be done in the Examples to support
- both native and ODF implementations of RTTI/exceptions but I'm at a loss to
- suggest a clean and (reasonably) transparent way to do so. I'm going to
- suggest to MW that CW10 include linker warnings when attempting to link
- libraries that were compiled with a different set of options and possibly
- the same for precompiled headers during compilation.
-
- Bill
-
-